//package com.example.provider.controller;
//
//import com.example.common.base.BaseController;
//import com.example.common.base.Paging;
//import com.example.common.base.Result;
//import com.example.common.model.Image;
//import com.example.common.model.condition.ImageCondition;
//import com.example.provider.service.ImageService;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.PostMapping;
//import org.springframework.web.bind.annotation.RequestBody;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController;
//
//import com.baomidou.mybatisplus.core.metadata.IPage;
//import io.swagger.annotations.Api;
//import io.swagger.annotations.ApiImplicitParam;
//import io.swagger.annotations.ApiOperation;
//
//
//
///**
// * 用于存放文章表的图片关系Controller
// *
// * @author 510
// * @version 1.0.0 2021-04-23
// */
//@Api(tags = "用于存放文章表的图片关系服务")
//@RestController
//@RequestMapping("/image")
//public class ImageController extends BaseController {
//    @Autowired
//    private ImageService imageService;
//
//    @ApiOperation(value = "根据查询参数分页查询用于存放文章表的图片关系列表")
//    @ApiImplicitParam(name = "condition", value = "用于存放文章表的图片关系查询条件", required = true, dataType = "ImageCondition", paramType = "body")
//    @PostMapping("/list")
//    public Paging<Image> list(@RequestBody ImageCondition condition) {
//        IPage<Image> page = imageService.findImageByCondition(condition);
//        return Paging.buildPaging(page);
//    }
//
////    @ApiOperation(value = "根据主键ID查询用于存放文章表的图片关系信息")
////    @ApiImplicitParam(name = "", value = "主键ID", required = true)
////    @GetMapping(value = "/get/{}")
////    public Result<Image> get(@PathVariable) {
////        //该处需处理处理，匹配前端的id值
////        if ( == null) {
////            return Result.failed("请选择需要查询的数据！");
////        }
////        Image image = imageService.getImageById();
////        return Result.ok(image);
////    }
//
//    @ApiOperation(value = "新增用于存放文章表的图片关系信息")
//    @ApiImplicitParam(name = "image", value = "用于存放文章表的图片关系", required = true, dataType = "Image", paramType = "body")
//    @PostMapping("/add")
//    public Result<?> add(@RequestBody Image image) {
//        boolean bool = imageService.addImage(image);
//        if (bool) {
//            return Result.ok(image);
//        }
//        return Result.failed();
//    }
//
////    @ApiOperation(value = "修改用于存放文章表的图片关系信息")
////    @ApiImplicitParam(name = "image", value = "用于存放文章表的图片关系", required = true, dataType = "Image", paramType = "body")
////    @PutMapping(value = "/update")
////    public Result<?> update(@RequestBody Image image) {
////          = image.get();
////        if ( == null) {
////            return Result.failed("请选择需要修改的数据！");
////        }
////        boolean bool = imageService.updateImage(image);
////        return Result.okOrFailed(bool);
////    }
//
////    @ApiOperation(value = "根据主键ID删除用于存放文章表的图片关系")
////    @ApiImplicitParam(name = "", value = "主键ID", required = true)
////    @DeleteMapping(value = "/delete/{id}")
////    public Result<?> delete(@PathVariable  ) {
////        if ( == null) {
////            return Result.failed("请选择需要删除的数据！");
////        }
////        boolean bool = imageService.deleteImageById();
////        return Result.okOrFailed(bool);
////    }
//
////    @ApiOperation(value = "根据主键ID列表批量删除用于存放文章表的图片关系")
////    @ApiImplicitParam(name = "idList", value = "主键ID列表", required = true, allowMultiple = true, paramType = "body")
////    @DeleteMapping("/deleteList")
////    public Result<?> deleteList(@RequestBody List<> idList) {
////        if (CollectionUtils.isEmpty(idList)) {
////            return Result.failed("请选择需要删除的数据！");
////        }
////        boolean bool = imageService.deleteImageByIds(idList);
////        return Result.okOrFailed(bool);
////    }
//}